package com.hackerrank.challenges.ideidentifyingcomments;

import java.util.Scanner;

public class Solution {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		StringBuilder s = new StringBuilder();
		while(in.hasNext())
			s.append(in.nextLine()).append("\n");
		char c[] = s.toString().toCharArray();
		boolean inComment = false, mlc = false;
		for(int i = 0; i < c.length; i++) {
			if(inComment) {
				if(mlc) {
					if(c[i] == '*' && c[i + 1] == '/') {
						System.out.println("*/");
						inComment = false;
						i++;
					} else
						System.out.print(c[i]);
				} else {
					System.out.print(c[i]);
					if(c[i] == '\r' || c[i] == '\n')
						inComment = false;
				}
			} else {
				if(c[i] == '/') {
					if(c[i + 1] == '*') {
						System.out.print("/*");
						inComment = mlc = true;
						i++;
					} else if(c[i + 1] == '/') {
						System.out.print("//");
						inComment = true;
						mlc = false;
						i++;
					}
				}
			}
		}
	}
}
